<?xml version="1.0"?>
<#import "root://activities/common/kotlin_macros.ftl" as kt>
<recipe>

<#if generateMVP>

    <instantiate from="root/src/app_package/MvpContract.kt.ftl"
				  to="${projectOut}/src/main/java/${slashedPackageName(packageName)}/contract/${activityClass}Contract.kt" />
				  
    <instantiate from="root/src/app_package/MvpPresenter.kt.ftl"
				  to="${projectOut}/src/main/java/${slashedPackageName(packageName)}/presenter/${activityClass}Presenter.kt" />
</#if>

<#if useActivity>

<instantiate from="root/src/app_package/AnkoActivityUI.kt.ftl"
				  to="${projectOut}/src/main/java/${slashedPackageName(packageName)}/layout/${activityClass}ActivityUI.kt" />

<instantiate from="root/src/app_package/AnkoActivity.kt.ftl"
				  to="${projectOut}/src/main/java/${slashedPackageName(packageName)}/activity/${activityClass}Activity.kt" />
				  </#if>

<#if useListActivity>

<instantiate from="root/src/app_package/ListActivity.kt.ftl"
				  to="${projectOut}/src/main/java/${slashedPackageName(packageName)}/activity/${activityClass}Activity.kt" />
				  </#if>

<#if useAnkoLayoutUI>

<instantiate from="root/src/app_package/AnkoLayoutUI.kt.ftl"
				  to="${projectOut}/src/main/java/${slashedPackageName(packageName)}/${activityClass}UI.kt" />

				 
</#if>

<#if useFragment>

<instantiate from="root/src/app_package/AnkoFragmentUI.kt.ftl"
				  to="${projectOut}/src/main/java/${slashedPackageName(packageName)}/layout/${activityClass}FragmentUI.kt" />

<instantiate from="root/src/app_package/AnkoFragment.kt.ftl"
				  to="${projectOut}/src/main/java/${slashedPackageName(packageName)}/fragment/${activityClass}Fragment.kt" />
</#if>




<#if useBottomDialog>

<instantiate from="root/src/app_package/BottomDialogFragmentUI.kt.ftl"
				  to="${projectOut}/src/main/java/${slashedPackageName(packageName)}/layout/${activityClass}FragmentUI.kt" />

<instantiate from="root/src/app_package/BottomDialogFragment.kt.ftl"
				  to="${projectOut}/src/main/java/${slashedPackageName(packageName)}/fragment/${activityClass}Fragment.kt" />
</#if>


				  
<#if useAdapter>

<instantiate from="root/src/app_package/AnkoAdapter.kt.ftl"
				  to="${projectOut}/src/main/java/${slashedPackageName(packageName)}/${activityClass}Adapter.kt" />		 
</#if>


<#if generateMVP && !useActivity && !useFragment>
    <open file="${projectOut}/src/main/java/${slashedPackageName(packageName)}/contract/${activityClass}Contract.kt" /> 
</#if>

<#if useActivity>
 <open file="${projectOut}/src/main/java/${slashedPackageName(packageName)}/activity/${activityClass}Activity.kt" /> 
</#if>

<#if useFragment>
 <open file="${projectOut}/src/main/java/${slashedPackageName(packageName)}/fragment/${activityClass}Fragment.kt" /> 
</#if>


<#if useListActivity>
 <open file="${projectOut}/src/main/java/${slashedPackageName(packageName)}/activity/${activityClass}Activity.kt" /> 
</#if>

<#if useAnkoLayoutUI>
 <open file="${projectOut}/src/main/java/${slashedPackageName(packageName)}/${activityClass}UI.kt" /> 
</#if>

<#if useBottomDialog>
 <open file="${projectOut}/src/main/java/${slashedPackageName(packageName)}/fragment/${activityClass}Fragment.kt" /> 
</#if>
</recipe>
